<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.sun.xml.internal.fastinfoset.Encoder"%>
<%@ taglib prefix="s" uri="/struts-tags"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>北京</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" src="/js/common/jquery-1.4.2.min.js"></script> 	
<link href="/usercenter/css/usercenter.css" rel="stylesheet" type="text/css" />
<script language="text/javascript" src="/usercenter/js/usercenter.js"></script>
<script type="text/javascript" src="/js/common/PCASClass.js" charset="UTF-8"></script>
<script language="javascript" src="/js/common/pic.js"></script>
</head>
	
<body>
<div class="main">
	<div class="maintable">
		<form id="form" name="form"  enctype="multipart/form-data"  method="post" action="/usercenter/saveInfo.do">
		<table class="tb" border="1" bordercolor="#e7e7e7" >	
		  	<tr>
			  	<td colspan="2" class="maintitle" >
					<div class="maintitleimg"></div>
					<div class="maintitle_a">个人信息</div>
			  	</td>
      	  	</tr>
	    	<tr>
		    	<td width="20%" align="right" class="field" >用户名：</td>
				<td width="80%" align="left" class="fieldtext" >${ssup.account }</td>
		  	</tr>	
	    	<tr>
		    	<td align="right" class="field" ><span>公司名称：</span></td>
				<td align="left" class="fieldtext" >${ssup.supplierName }<input type="hidden" id="corpName" name="corpName" value="${ssup.supplierName }" /></td>
			</tr> 	
	    	<tr>
		    	<td align="right" class="field" ><span>联系人：</span></td>
				<td align="left" class="fieldtext" ><input type="text" id="realName" name="realName" value="${ssup.name }" /></td>
			</tr> 	
	    	<tr>
		    	<td align="right" class="field" ><span>联系电话：</span></td>
				<td align="left" class="fieldtext" ><input type="text" id="tel" name="tel" value="${ssup.tel }" /></td>
			</tr> 	
	    	<tr>
		    	<td align="right" class="field" ><span>邮箱：</span></td>
				<td align="left" class="fieldtext" ><input type="text" id="email" name="email" value="${ssup.email }" /></td>
			</tr> 	
	    	<tr>
		    	<td align="right" class="field" ><span>传真：</span></td>
				<td align="left" class="fieldtext" ><input type="text" id="fax" name="fax" value="${ssup.fax }" /></td>
			</tr> 	
	    	<tr>
		    	<td align="right" class="field" ><span>地区：</span></td>
				<td align="left" class="fieldtext" >
					<select id="province" name="province" style="width:95px;height:20px;" ></select>
   				    <select id="city"  name="city"  style="width:95px;height:20px;"></select>   				    
					<script language="javascript">
						new PCAS("province","city", "${ssup.province}","${ssup.city}");
					</script>
				</td>
			</tr> 
			<tr>
		    	<td align="right" class="field" ><span>质量管理认证信息：</span></td>
				<td align="left" style="height:100px;" >
					 <table width="98%" border="0" cellspacing="0" cellpadding="0">
							<tr align="left" height="100px">
								<td width="290px">
									<input id="reg1" name="business_cert" type="file" size="32" onchange="getimg(this, 'regimg1');" />
								</td>
								<td align="center" valign="middle" 
									style="background:url(/images/common/qtbg.jpg) center center no-repeat;">
									<s:if test="ssup.businessCert != null && ssup.businessCert != '' ">
									<img id="regimg1" onload="loadImage(this);" src="${ssup.businessCert}"
										width="70" height="70" border="0" />
									</s:if>
									<s:else>
									<img id="regimg1" onload="loadImage(this);" src="/images/common/img_df70.gif"
										width="70" height="70" border="0" />
									</s:else>
								</td>
								<td>
									<font style="font-size:12px; color: #ff0000;">图片大小不能大于2M;</font>
								</td>
							</tr>
						</table>
				</td>
			</tr> 
			<tr>
		    	<td align="right" class="field" ><span>提供产品：</span></td>
				<td align="left" class="fieldtext" ><input type="text" id="cargo" name="cargo" class="text"  value="${ssup.suppliserCargo }" /></td>
			</tr> 
			<tr>
		    	<td align="right" class="field" ><span>组织机构代码： </span></td>
				<td align="left" class="fieldtext" ><input type="text" id="jgcode" name="jgcode" class="text"  value="${ssup.supplierCode }" /></td>
			</tr> 	
		  	<tr>
			  	<td align="center" colspan="2" class="maintitle" >
			  		<input type="submit" value="  提 交  " onclick="return submitConfirm();" />
			  	    <input type="hidden" id="oldpic" name="oldpic" value="${ssup.businessCert }" />
			  	</td>
      	  	</tr>
        </table>
        </form>
	</div>
</div>
 <script type="text/javascript">
   $(document).ready(function(){
			var msg = "${message}";
			  if(msg != ""){
				 showMessage(msg);
			}
			});
   </script>
</body>
</html>